import request from '@/utils/request'

/**
 * 公用的api
 */

 export const getAllPosition = query =>{
     return request({
         url:'/oa/common/position_list',
         method: 'get',
         params: query
     })
 }

 //根据角色查找用户

 export const getUserList = query => {
     return request({
         url:'/oa/common/getUserList',
         method: 'get',
         params: query,

     })
 }

 //所有职位+所有用户
 export const getAllRoleAndUser = query =>{
     return request({
         url:'/oa/common/getAllRoleAndUser',
         method:'get',
         params:query
     })
 }

//获取所需要的公共数据
export const getCommonSelect = query =>{
   return request({
     url:'/oa/common/input',
     method:'get',
     params:query
   })
}

//获取公司部门
export const getCompanyDept = query => {
  return request({
    url:'/oa/common/getCompanyDept',
    method:'get',
    params:query
  })
}

